def count(str1):
    d = {}
    for i in str1:
        flag = i in d.keys()
        if flag:
            d[i] += 1
        else:
            d[i] = 1
    return d
        
str0 = input("请输入字符：")

d = count(str0)
print(d)
